--TEST--
Check for jsonschema vali string
--SKIPIF--

<?php
if (!extension_loaded("jsonschema")) {
    print "skip";
}
?>
--FILE--
<?php
echo 'boolean:';
$value = true;
$jsonSchema = new JsonSchema(json_encode($value));

echo assert($jsonSchema->validate('{"type":"boolean","default":false}')), PHP_EOL;

echo 'integer or boolean:', PHP_EOL;
$value = true;
$jsonSchema = new JsonSchema(json_encode($value));
echo assert($jsonSchema->validate('{"type":["boolean","integer"],"default":false}'));

$value = 123;
$jsonSchema = new JsonSchema(json_encode($value));
echo ',',($jsonSchema->validate('{"type":["boolean","integer"],"default":false}')), PHP_EOL;
?>
--EXPECT--
boolean:1
integer or boolean:1,1